/*
 *
 *      Copyright (c) 2018-2025, nart All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the pig4cloud.com developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: nart
 *
 */

package com.nai365.nart.blockchain.api.feign;

import com.nai365.nart.blockchain.dto.*;
import com.nai365.nart.common.core.constant.SecurityConstants;
import com.nai365.nart.common.core.constant.ServiceNameConstants;
import com.nai365.nart.common.core.util.R;
import io.lettuce.core.ConnectionId;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author nart
 * @date 2018/6/28
 */
@FeignClient(contextId = "remoteDDCService", value = ServiceNameConstants.BLOCKCHAIN_SERVICE)
public interface RemoteDDCService {

	/**
	 * 藏品铸币
	 *
	 * @param coinDDCDto 铸币参数
	 * @return CoinDDCResultDto
	 */
	@PostMapping("/ddc/coin")
	R<CoinDDCResultDto> coin(@RequestBody CoinDDCDto coinDDCDto);

	/**
	 * 藏品售卖，适用于一级市场
	 *
	 * @param sellInDto
	 * @return SellOutDto
	 */
	@PostMapping("/ddc/sell")
	R<SellOutDto> sell(@RequestBody SellInDto sellInDto);

	/**
	 * 藏品转账，适用于二级级市场和转赠
	 *
	 * @param transferInDto
	 * @return TransferOutDto
	 */
	@PostMapping("/ddc/transfer")
	R<TransferOutDto> transfer(@RequestBody TransferInDto transferInDto);


	/**
	 * 藏品销毁，适用于回收和合成
	 *
	 * @param burnInDto
	 * @return BurnOutDto
	 */
	@PostMapping("/ddc/burn")
	R<BurnOutDto> burn(@RequestBody BurnInDto burnInDto);


}
